<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
{% if user is defined %}
    user定义了：{{ user }}
{% else %}
    user没有定义
{% endif %}
</body>
</html>